(function($, im, doc) {
	$.plusReady(function() {
		var transDoc = document.getElementById("tovideonet");
		//console.log(im.roomType); 
		if(im.roomType == 2){
			transDoc && transDoc.parentNode.remove();
		}
		transDoc && transDoc.addEventListener('tap', function() {
			var service_comfirm = plus.webview.getWebviewById("video_wait.html");
			service_comfirm && plus.webview.close(service_comfirm, "none");
			mui.fire(im.mainWin, 'addvideo', {room_id : im.roomId});
			mui.openWindow({
				url: "video_wait.html",
				id: "video_wait.html",
				extras : {
					'toid' : im.roomId,
					'toname' : im.chatName
				}
			});
		});

	});

}(mui, im, document));